<!DOCTYPE html >
<html>

	<head>
		<meta charset="UTF-8">

		<title>热门团购_{$web_name}</title>
		<meta name="Keywords" content="热门团购" />
		<meta name="Description" content="热门团购" />
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
		<meta name="viewport" content="width=device-width">
		<link rel="stylesheet" href="__TMPL__Public/css/common.css" />
		<link rel="stylesheet" href="__TMPL__Public/css/user.css" />
		<link rel="stylesheet" href="__TMPL__Public/css/public.css" />
		<link rel="stylesheet" href="__TMPL__Public/css/collect.css" />
		<link rel="stylesheet" href="/themes/wnsc_moblie/newMobile/Cart/css/flow.css" />
		<link rel="stylesheet" type="text/css" href="/themes/wnsc_moblie/newMobile/List/css/group_buy.css" />
		<script type="text/javascript" src="__TMPL__Public/js/jquery.js"></script>
		<script type="text/javascript" src="__TMPL__Public/js/jquery.json.js"></script>
		<script type="text/javascript" src="__TMPL__Public/js/transport.js"></script>
		<script type="text/javascript" src="__TMPL__Public/js/common.js"></script>
		
		<script type="application/javascript" src="__TMPL__Public/js/jquery.more.js"></script>
		<script src="/themes/wnsc_moblie/newMobile/Shop/js/mobile/layer.js"></script>
		<link rel="stylesheet" type="text/css" href="/themes/wnsc_moblie/newMobile/Store/template/demo/css/swiper.min.css" />
		<script src="/themes/wnsc_moblie/newMobile/Store/template/demo/js/swiper.jquery.min.js"></script>
		<style type="text/css">
			.show-menu-btn {
				height: 46px;
			}
		</style>
	</head>

	<body style="background:#f3f5f7;">

		<div class="tab_nav">
			<div class="header" style=" position:relative">
				<div class="h-left">
					<a class="sb-back" href="javascript:history.back(-1)" title="返回"></a>
				</div>
				<div class="h-mid"> 热门团购 </div>
				<aside class="show-menu-btn">
					<div id="show_more" class="show-menu">
						<a href="javascript:;"></a>
					</div>
				</aside>
			</div>

		</div>
		<mtc_include file="Public:right_nav" />

		</div>
		<?php 
            $group_banner=sp_getslide(6);
        ?>
		<div class="swiper-container">
			<div class="swiper-wrapper">
				<foreach name="group_banner" item="v" key="k">
					<div class="swiper-slide">
						<a href="{$v.ad_link}">
							<img src="{$v.UpFilePathInfo}">
						</a>
					</div>
				</foreach>
				
				

			</div>

			<div class="swiper-pagination"></div>

		</div>
		<script>
			var swiper = new Swiper('.swiper-container', {
				pagination: '.swiper-pagination',
				paginationClickable: true,
				autoplay: 3000,
				autoplayDisableOnInteraction: false
			});
		</script>
		<div  style="opacity: 1;">
						<div class="product single_item "></div>
						
					</div>
		<div class="group-list-box" id="J_ItemList">

			<ul class="group-list tablelist-append product single_item info">
				
				<!---->

			

			</ul>
			<a href="javascript:;" class="get_more">
						</a>
			<!-- 分页 -->

		</div>
		
		<script type="text/javascript">
				var url = "{:U('list/ajax_group')}";
				$(function() {
					$('#J_ItemList').more({
						'address': url
					});
					updateEndTime();
				});
				//倒计时函数
				function updateEndTime() {
					var date = new Date();
					var time = date.getTime(); //当前时间距1970年1月1日之间的毫秒数
			
					$(".settime").each(function(i) {
			
						var endDate = this.getAttribute("endTime"); //结束时间字符串
						//转换为时间日期类型
						var endDate1 = eval('new Date(' + endDate.replace(/\d+(?=-[^-]+$)/, function(a) {
							return parseInt(a, 10) - 1;
						}).match(/\d+/g) + ')');
			
						var endTime = endDate1.getTime(); //结束时间毫秒数
			
						var lag = (endTime - time) / 1000; //当前时间和结束时间之间的秒数
			
						if (lag > 0) {
							var second = Math.floor(lag % 60);
							var minite = Math.floor((lag / 60) % 60);
							var hour = Math.floor((lag / 3600) % 24);
							var day = Math.floor((lag / 3600) / 24);
							$(this).html("剩余" + day + "天" + hour + "时" + minite + "分" + second + "秒");
						} else
							$(this).html("团购已经结束啦！");
					});
					setTimeout("updateEndTime()", 1000);
				}
			</script>
		<mtc_include file="Public:footer" />
	</body>

</html>